Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Arduino Nicla Sense ME support (fixes #319) #331

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alexandra182
Copy link

I made some minor changes to the .cpp file to add support for the Arduino Nicla Sense ME.

I added ARDUINO_ARCH_NRF52832 to the conditional #define statements. I found this architecture at
.arduino15/packages/arduino/hardware/mbed_nicla/3.3.0/boards.txt
on this line:
nicla_sense.compiler.mbed.arch.define=-DARDUINO_ARCH_NRF52832

I also added an extra condition to use the digitalPinToPinName instead of digitalPinToBitMask because the Arduino IDE gave an error and suggested to do this when compiling for Nicla Sense.

I'm not sure if this is the proper way to do it, but it worked for me 😄 I tested with a Nicla Sense ME and multiple Neopixels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant